package com.lovo;

import java.util.Arrays;
import java.util.regex.Pattern;

/**
 *
 */
public class Test03 {
    public static void main(String[] args){
//        String str = "510101199001011234";
//        Pattern pattern = Pattern.compile("\\d{15}([0-9]{2}[0-9X])?");
//        System.out.println(pattern.matcher("1231235101011990010112344123123123").find());
//
//
//        System.out.println(str.matches("^\\d{15}([0-9]{2}[0-9X])?$"));

        String str = "this   is    java";
        String [] strs = str.split(" +");
        System.out.println(Arrays.toString(strs));
    }
}
